<?php

namespace Admin\Entity;

class SerialBook {

    public $bookBarcode;
    public $serial;
    public $dateCreated;
    public $personCreated;
    public $bookStatus;

    public function getBookBarcode() {
        return $this->bookBarcode;
    }

    public function setBookBarcode($bookBarcode) {
        $this->bookBarcode = $bookBarcode;
    }

    public function getSerial() {
        return $this->serial;
    }

    public function setSerial($serial) {
        $this->serial = $serial;
    }

    public function getDateCreated() {
        return $this->dateCreated;
    }

    public function setDateCreated($dateCreated) {
        $this->dateCreated = $dateCreated;
    }

    public function getPersonCreated() {
        return $this->personCreated;
    }

    public function setPersonCreated($personCreated) {
        $this->personCreated = $personCreated;
    }

    public function getBookStatus() {
        return $this->bookStatus;
    }

    public function setBookStatus($bookStatus) {
        $this->bookStatus = $bookStatus;
    }

    public function setDataSerialBook($data) {
        $this->bookBarcode = (isset($data['bookBarcode'])) ? $data['bookBarcode'] : null;
        $this->serial = (isset($data['serial'])) ? $data['serial'] : null;
        $this->dateCreated = (isset($data['dateCreated'])) ? $data['dateCreated'] : null;
        $this->personCreated = (isset($data['personCreated'])) ? $data['personCreated'] : null;
        $this->bookStatus = (isset($data['bookStatus'])) ? $data['bookStatus'] : null;
    }

    public function getArrayCopy() {
        return get_object_vars($this);
    }

}

?>